home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / jed096_1.zip / SLANG / SRC / SLFILE.H < prev    next >
C/C++ Source or Header  |  1994-04-26  |  607b  |  29 lines

  1. typedef struct 
  2. {
  3.    int fd;                   /* handle */
  4.    FILE *fp;                   /* kind of obvious */
  5.    unsigned int flags;               /* modes, etc... */
  6. #ifdef HAS_SUBPROCESSES
  7.    int pid;                   /* pid of child (if any) */
  8. #endif
  9. } SL_File_Table_Type;
  10.  
  11. #define SL_MAX_FILES 30
  12. extern SL_File_Table_Type SL_File_Table[SL_MAX_FILES];
  13.  
  14. #define SL_READ        0x01
  15. #define SL_WRITE    0x02
  16. #define SL_BINARY    0x04
  17. #define SL_SOCKET    0x08
  18. #define SL_PROCESS    0x10
  19.  
  20. #ifdef HAS_SUBPROCESSES
  21. extern int SLcreate_child_process (char *);
  22. #endif
  23.  
  24. extern SL_File_Table_Type *get_file_table_entry(void);
  25.  
  26.  
  27.  
  28.  
  29.